<?php

namespace app\model;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class GameAuthorization extends Base
{

    protected $connection;

    protected $table = 'game_authorization';

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);

        $this->connection = config('database.connections.biqi_game.database');
    }

    public function Merchant(): BelongsTo
    {
        return $this->belongsTo(Merchant::class, 'merchant', 'ulid');
    }

}
